//
//  UIView+Extension.h
//  ShinyOrder
//
//  Created by 王方伟 on 16/7/22.
//  Copyright © 2016年 ShinyHub. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Extension)
@property (assign, nonatomic) CGFloat width;
@property (assign, nonatomic) CGFloat height;
@property (assign, nonatomic) CGFloat x;
@property (assign, nonatomic) CGFloat y;
@property (assign, nonatomic) CGSize size;
@property (assign, nonatomic) CGPoint origin;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;

/** 边线颜色 */
@property (nonatomic, strong) IBInspectable UIColor *borderColor;
/** 边线宽度 */
@property (nonatomic, assign) IBInspectable CGFloat borderWidth;
/** 圆角半径 */
@property (nonatomic, assign) IBInspectable CGFloat cornerRadius;

/** 遍历打印所有子视图 */
- (void)getSub:(UIView *)view andLevel:(int)level;
@end
